//package com.info.zhiduoduo.weixin.controller;
//
//import com.info.zhiduoduo.common.annotation.LogEntity;
//import com.info.zhiduoduo.common.annotation.LogParameter;
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.repository.entity.crowdsource.Crowdsource;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceAccount;
//import com.info.zhiduoduo.weixin.formbean.crowdsource.CrowdsourceRealNameAuthFormBean;
//import com.info.zhiduoduo.weixin.formbean.crowdsource.RegCrowdsourceFormBean;
//import com.info.zhiduoduo.weixin.formbean.crowdsource.UpdateBankInfoFormBean;
//import com.info.zhiduoduo.weixin.formbean.crowdsource.UpdateEmergencyContactFormBean;
//import com.info.zhiduoduo.weixin.formbean.project.GenerateProjectAcceptance;
//import com.info.zhiduoduo.weixin.formbean.project.UploadProjectFileUrlFormBean;
//import com.info.zhiduoduo.weixin.service.CrowdsourceService;
//
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//@Api(tags = "微信端 众包自然人")
//@RestController
//@RequestMapping("/crowdsource")
//public class CrowdsourceController {
//
//	@Autowired
//	CrowdsourceService crowdsourceService;
//
//	/**
//	 * 注册绑定手机
//	 */
//	@PostMapping("/register")
//	public SmartResult registerCrowdsource(@RequestBody BaseSimpleFormBean<RegCrowdsourceFormBean> formBean) {
//		return crowdsourceService.registerCrowdsource(formBean);
//	}
//
//	/**
//	 * 更新实名信息
//	 */
//	@ZddLog(type = ZddLogType.UPDATE,name = "更新实名信息",entities = @LogEntity(entity = Crowdsource.class,parameters =
//	@LogParameter(fields = "crowdsourceid",parameters = "formBean.userid")))
//	@PostMapping("/realnameAuth")
//	public SmartResult realnameAuth(@RequestBody BaseSimpleFormBean<CrowdsourceRealNameAuthFormBean> formBean) {
//		return crowdsourceService.realnameAuth(formBean);
//	}
//
//	/**
//	 * 获取账号详情
//	 */
//	@PostMapping("/info")
//	public SmartResult getCrowdsourceInfo(@RequestBody BaseSimpleFormBean formBean) {
//		return crowdsourceService.getCrowdsourceInfo(formBean);
//	}
//
//	/**
//	 * 自然人同意 协议，并完成认证
//	 */
//	@PostMapping("/acceptProtocol")
//	public SmartResult acceptProtocolAndAuth(@RequestBody BaseSimpleFormBean formBean) {
//		return crowdsourceService.acceptProtocolAndAuth(formBean);
//	}
//
//	/**
//	 * 获取智众包项目列表
//	 */
//	@PostMapping("/projectList")
//	public SmartResult getProjectList(@RequestBody BaseSimpleFormBean formBean) {
//		return crowdsourceService.getProjectList(formBean);
//	}
//
//	/**
//	 * 获取智众包项目详情
//	 */
//	@PostMapping("/projectDetail")
//	public SmartResult getProjectDetail(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.getProjectDetail(formBean);
//	}
//
//	/**
//	 * 更新银行卡信息
//	 */
//	@ZddLog(type = ZddLogType.UPDATE,name = "更新银行卡信息",entities = @LogEntity(entity = CrowdsourceAccount.class,parameters =
//	@LogParameter(fields = "crowdsourceid",parameters = "formBean.userid")))
//	@ApiOperation("更新银行卡信息")
//	@PostMapping("/updateBankInfo")
//	public SmartResult updateBankInfo(@RequestBody BaseSimpleFormBean<UpdateBankInfoFormBean> formBean) {
//		return crowdsourceService.updateBankInfo(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE,name = "修改紧急联系人姓名及电话",entities = @LogEntity(entity = CrowdsourceAccount.class,parameters =
//	@LogParameter(fields = "id",parameters = "formBean.reqdata.id")))
//	@ApiOperation("修改紧急联系人姓名及电话")
//	@PostMapping("/updateEmergencyContact")
//	public SmartResult updateEmergencyContact(@RequestBody BaseSimpleFormBean<UpdateEmergencyContactFormBean> formBean) {
//		return crowdsourceService.updateEmergencyContact(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE, name = "上传众包任务证据链")
//	@ApiOperation("上传众包任务证据链")
//	@PostMapping("/uploadProjectFileUrl")
//	public SmartResult uploadProjectFileUrl(@RequestBody BaseSimpleFormBean<UploadProjectFileUrlFormBean> formBean) {
//		return crowdsourceService.uploadProjectFileUrl(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.CREATE, name = "企业批量生成众包项目交付物")
//	@ApiOperation("生成众包项目验收文档")
//	@PostMapping("/generateProjectDeliveryFile")
//	public SmartResult generateProjectDeliveryFile(@RequestBody BaseSimpleFormBean<GenerateProjectAcceptance> formBean){
//		return crowdsourceService.generateProjectDeliveryFile(formBean.getUserid(),formBean.getReqdata());
//	}
//
//	@ZddLog(type = ZddLogType.CREATE, name = "上传众包子项目任务证据链")
//	@ApiOperation("上传众包子项目任务证据链")
//	@PostMapping("/subprojectEvidenceChain")
//	public SmartResult subprojectEvidenceChain(@RequestBody BaseSimpleFormBean<UploadProjectFileUrlFormBean> formBean) {
//		return crowdsourceService.subprojectEvidenceChain(formBean);
//	}
//}
